package com.tcfvic.client.pojos;
// Generated 29/03/2010 9:10:02 PM by Hibernate Tools 3.1.0.beta4

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;


/**
 * Workercompany generated by hbm2java
 */
@Entity
@Table(name="workercompany"
    
, uniqueConstraints = {  }
)

public class Workercompany  implements java.io.Serializable {


    // Fields    

     private int id;
     private String name;
     private String brand;
     private String site;
     private String addressline1;
     private String addressline2;
     private String suburb;
     private String state;
     private Integer postcode;
     private String contactperson;
     private Date dateofclosure;
     private Date dateproductionstopped;
     private String reasonforredundancies;
     private String division;
     private String phone;
     private String contactposition;
     private String contactph1;
     private String contactph2;
     private String contactph3;
     private String display;
     private Set<Employmentdetails> employmentdetailses = new HashSet<Employmentdetails>(0);


    // Constructors

    /** default constructor */
    public Workercompany() {
    }

	/** minimal constructor */
    public Workercompany(int id, String name) {
        this.id = id;
        this.name = name;
    }
    
    /** full constructor */
    public Workercompany(int id, String name, String brand, String site, String addressline1, String addressline2, String suburb, String state, Integer postcode, String contactperson, Date dateofclosure, Date dateproductionstopped, String reasonforredundancies, String division, String phone, String contactposition, String contactph1, String contactph2, String contactph3, String display, Set<Employmentdetails> employmentdetailses) {
        this.id = id;
        this.name = name;
        this.brand = brand;
        this.site = site;
        this.addressline1 = addressline1;
        this.addressline2 = addressline2;
        this.suburb = suburb;
        this.state = state;
        this.postcode = postcode;
        this.contactperson = contactperson;
        this.dateofclosure = dateofclosure;
        this.dateproductionstopped = dateproductionstopped;
        this.reasonforredundancies = reasonforredundancies;
        this.division = division;
        this.phone = phone;
        this.contactposition = contactposition;
        this.contactph1 = contactph1;
        this.contactph2 = contactph2;
        this.contactph3 = contactph3;
        this.employmentdetailses = employmentdetailses;
        this.display = display;
    }
    

   
    // Property accessors
    @Id
    @Column(name="id", unique=true, nullable=false, insertable=true, updatable=true)
@GeneratedValue(strategy=GenerationType.AUTO)
    public int getId() {
        return this.id;
    }
    
    public void setId(int id) {
        this.id = id;
    }
    @Column(name="name", unique=false, nullable=false, insertable=true, updatable=true, length=100)

    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }

    @Column(name="brand", unique=false, nullable=true, insertable=true, updatable=true, length=100)

    public String getBrand() {
        return this.brand;
    }
    
    public void setBrand(String brand) {
        this.brand = brand;
    }
    @Column(name="site", unique=false, nullable=true, insertable=true, updatable=true, length=200)

    public String getSite() {
        return this.site;
    }
    
    public void setSite(String site) {
        this.site = site;
    }
    @Column(name="addressline1", unique=false, nullable=true, insertable=true, updatable=true, length=200)

    public String getAddressline1() {
        return this.addressline1;
    }
    
    public void setAddressline1(String addressline1) {
        this.addressline1 = addressline1;
    }
    @Column(name="addressline2", unique=false, nullable=true, insertable=true, updatable=true, length=100)

    public String getAddressline2() {
        return this.addressline2;
    }
    
    public void setAddressline2(String addressline2) {
        this.addressline2 = addressline2;
    }
    @Column(name="suburb", unique=false, nullable=true, insertable=true, updatable=true, length=45)

    public String getSuburb() {
        return this.suburb;
    }
    
    public void setSuburb(String suburb) {
        this.suburb = suburb;
    }
    @Column(name="state", unique=false, nullable=true, insertable=true, updatable=true, length=45)

    public String getState() {
        return this.state;
    }
    
    public void setState(String state) {
        this.state = state;
    }
    @Column(name="postcode", unique=false, nullable=true, insertable=true, updatable=true)

    public Integer getPostcode() {
        return this.postcode;
    }
    
    public void setPostcode(Integer postcode) {
        this.postcode = postcode;
    }
    @Column(name="contactperson", unique=false, nullable=true, insertable=true, updatable=true, length=50)

    public String getContactperson() {
        return this.contactperson;
    }
    
    public void setContactperson(String contactperson) {
        this.contactperson = contactperson;
    }
    @Column(name="dateofclosure", unique=false, nullable=true, insertable=true, updatable=true, length=10)

    public Date getDateofclosure() {
        return this.dateofclosure;
    }
    
    public void setDateofclosure(Date dateofclosure) {
        this.dateofclosure = dateofclosure;
    }
    @Column(name="dateproductionstopped", unique=false, nullable=true, insertable=true, updatable=true, length=10)

    public Date getDateproductionstopped() {
        return this.dateproductionstopped;
    }
    
    public void setDateproductionstopped(Date dateproductionstopped) {
        this.dateproductionstopped = dateproductionstopped;
    }
    @Column(name="reasonforredundancies", unique=false, nullable=true, insertable=true, updatable=true, length=1000)

    public String getReasonforredundancies() {
        return this.reasonforredundancies;
    }
    
    public void setReasonforredundancies(String reasonforredundancies) {
        this.reasonforredundancies = reasonforredundancies;
    }
    @Column(name="division", unique=false, nullable=true, insertable=true, updatable=true, length=1000)

    public String getDivision() {
        return this.division;
    }
    
    public void setDivision(String division) {
        this.division = division;
    }
    @Column(name="phone", unique=false, nullable=true, insertable=true, updatable=true, length=45)

    public String getPhone() {
        return this.phone;
    }
    
    public void setPhone(String phone) {
        this.phone = phone;
    }
    @Column(name="contactposition", unique=false, nullable=true, insertable=true, updatable=true, length=300)

    public String getContactposition() {
        return this.contactposition;
    }
    
    public void setContactposition(String contactposition) {
        this.contactposition = contactposition;
    }
    @Column(name="contactph1", unique=false, nullable=true, insertable=true, updatable=true, length=450)

    public String getContactph1() {
        return this.contactph1;
    }
    
    public void setContactph1(String contactph1) {
        this.contactph1 = contactph1;
    }
    @Column(name="contactph2", unique=false, nullable=true, insertable=true, updatable=true, length=450)

    public String getContactph2() {
        return this.contactph2;
    }
    
    public void setContactph2(String contactph2) {
        this.contactph2 = contactph2;
    }
    @Column(name="contactph3", unique=false, nullable=true, insertable=true, updatable=true, length=450)

    public String getContactph3() {
        return this.contactph3;
    }
    
    public void setContactph3(String contactph3) {
        this.contactph3 = contactph3;
    }
    @OneToMany(cascade={CascadeType.ALL}, fetch=FetchType.LAZY, mappedBy="workercompany")

    public Set<Employmentdetails> getEmploymentdetailses() {
        return this.employmentdetailses;
    }
    
    public void setEmploymentdetailses(Set<Employmentdetails> employmentdetailses) {
        this.employmentdetailses = employmentdetailses;
    }
   

	public void setDisplay(String display) {
		this.display = display;
	}

    @Column(name="display", unique=false, nullable=true, insertable=true, updatable=true, length=100)
	public String getDisplay() {
		return display;
	}

}
